package com.kfpanda.file.monitor.listener;

import java.util.Date;
import java.util.TimerTask;

import org.apache.commons.lang.time.DateFormatUtils;

public class TodayTimerTask extends TimerTask{
	
	private String today;
	
	TodayTimerTask(){
		this.today = DateFormatUtils.format(new Date(), "yyyy-MM-dd");
	}
	
	@Override
	public void run() {
		today = DateFormatUtils.format(new Date(), "yyyy-MM-dd");
	}
	
	public String getToday(){
		return today;
	}
	
}
